<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"><title>Add Search Directory</title>
<xml></xml>
<link rel="stylesheet" type="text/css" href="MSDN.css"></head>
<body id="divID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tbody>
<tr id="hdr">
<td class="runninghead">
<p align="left">CS-Script 3.27.0</p>
</td>
<td class="product"> </td>
</tr>
</tbody>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1" align="left">Add Search Directory</h1>
</div>
</div>
<div id="nstext">
<p class="dtH4"><span style="font-weight: bold;">/dir:&lt;directory
1&gt;,&lt;directory N&gt;</span><b>&nbsp;</b>&nbsp;
</p>
<p>Instead of having&nbsp;script/assembly probing directories specified in global config file
(<span style="font-style: italic;">css_config.xml</span>) you can add them only for a&nbsp;particular script execution.
This can be achieved by specifying /dir switch:
</p>
<div style="margin-left: 40px;" class="syntax">
cscs /dir:C:\MyLibraries myScript.cs </div>
<blockquote>
<p>The command above executes the <span style="font-style: italic;">myScript.cs</span> script. It also
instructs the
script engine to include&nbsp;<span style="font-style: italic;">C:\MyLibraries</span> in script/assembly probing. </p>
</blockquote>
<h4 class="dtH4">See Also</h4>
<p> <a href="Command-line_Interface.html">Command-line
interface</a> | <a href="Using_.NET_assemblies.html">
Using .NET assemblies</a></p>
<p> &nbsp;</p>
<p> &nbsp;</p>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;"> <param name="Keyword" value="Load assembly">
</object> </div>
</body></html>

